home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7320 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: rational.com!usenet
  2. From: Gene Ouye <geneo@rational.com>
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.ada
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: Thu, 22 Feb 96 14:37:05 EST
  6. Organization: Rational Software Corporation
  7. Message-ID: <NEWTNews.825000934.12000.geneo@medusa.ppp.rational.com>
  8. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4gb4r3$psg@qualcomm.com> <eg4tslzr18.fsf@trost.ii.uib.no>  <dirk.824894312@demokrit>
  9. NNTP-Posting-Host: medusa.rational.com
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=US-ASCII
  12. X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
  13.  
  14.  
  15. Dirk Dickmanns <dirk@demokrit.informatik.unibw-muenchen.de> wrote:
  16.  
  17. > >[another citation of Ada 83 Booch Components shrunk 80%, 90%, 100%, 
  18.     or more when written in C++ deleted...]
  19. > My 2 Pfennig: It would have shrunk to 10 KLOC in all of Ada, C++,
  20. > Eiffel, Sather, whatever during recoding.  Maybe we have some kind of
  21. > code compressors, but up to now any recode I saw shrunk a lot and was
  22. > -- even if done by me -- not neccessarily less readable.
  23.  
  24. Dirk is right on the mark here (no pun intended:-).  Grady has said
  25. MANY TIMES and in MANY LOCATIONS that the reason the components shrank 
  26. so much was in no way due to the inherent expressiveness, goodness, or
  27. any other attribute of either Ada or C++, but was rather due to the 
  28. "aha" factor after examining the completed work and then taking a 
  29. second (or more) pass through and redoing it.  He admitted that due 
  30. to Ada's (at the time) lack of support for dynamic dispatching, there
  31. was some additional overhead that would be written into the code, but
  32. that regardless, there would have been an order of magnitude reduction
  33. in the size of the code similar to the reduction found in the C++ 
  34. components had they been redone in Ada 83.
  35.  
  36. Given Ada 95's support for tagged types, plus other goodies, it is 
  37. expected that the size of the final Ada 95 version will likely be 
  38. somewhat smaller than the C++ version.  Do not construe from this 
  39. that Ada 95 is now slightly more expressive than C++, probably if 
  40. someone takes another pass through the C++ version, it could be made
  41. even smaller as well.
  42.  
  43. Besides, statistics about a component library such as the Booch 
  44. components, or Tools.h++, or anything like that are pretty much 
  45. irrelevant to the normal programmer, who is NOT writing a reusable 
  46. component library, but rather an application that, among other things,
  47. utilizes component libraries.  These kinds of statistics make great 
  48. flame war fodder, but one would hope that reasonable people making 
  49. reasonable decisions about programming languages would be able to 
  50. see them for what they are and USE THEM IN THE PROPER CONTEXT.
  51.  
  52.  
  53. > Dirk
  54. > --
  55. > Dirk Dickmanns -- real-time dynamic computer vision
  56. > Sun OS 4.1.3; PC Linux; Transputers -- embedded
  57. > Ada 95, Ada 83, OCCAM2/3, ANSI C, Eiffel 3, PROLOG
  58.  
  59. Gene Ouye <geneo@rational.com>
  60.  
  61.